package com.example.neusoft.fragmenttest;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;


/**
 * A simple {@link Fragment} subclass.
 */
public class Fragment3 extends Fragment {


    private TextView tvinfo;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment1,container,false);
        tvinfo=(TextView)view.findViewById(R.id.textView8);
        tvinfo.setText("通讯录");
        Toast.makeText(getActivity(), "通讯录", Toast.LENGTH_SHORT).show();
        return view;
    }

}
